package com.example.aircraftticketingsystemserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.aircraftticketingsystemserver.Handler.MetaTypeHandler;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.TypeHandler;

import java.util.List;

@TableName("menu")
@Data
@NoArgsConstructor
public class Menu {
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Integer menuId;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String name;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String redirect;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String component;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String path;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer parentId;
    @JsonInclude(JsonInclude.Include.NON_NULL)

    private Meta meta;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<Menu> children;
}
